﻿using System;
using System.ComponentModel.DataAnnotations;

namespace LogManager.Base
{
    public class DateFilter : IDateFilter
    {
        public DateFilter()
        {
            Start = DateTime.Now.AddMonths(-1);
            End = DateTime.Now;
        }

        public DateFilter(DateTime start, DateTime end)
        {
            Start = start;
            End = end;
        }
        
        [DataType(DataType.DateTime)]
        [Display(Name = "Time Start")]
        public DateTime? Start { get; set; }

        [DataType(DataType.DateTime)]
        [Display(Name = "Time End")]
        public DateTime? End { get; set; }
    }
}